<template>
  <div id="rankUpgrade">
    <p>您当前权限不足，升级会员即可查看更多数据</p>
    <!-- <button @click="$router.push('/talent_main/buy')">升级会员</button> -->
    <button @click="upLevel(vipLevel)">升级会员</button>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  data() {
    return {
      vipLevel: 0,
    };
  },
  computed: {},
  watch: {},
  created() {
    this.vipLevel = localStorage.getItem('vipLevel');
  },
  mounted() {},

  methods: {
    upLevel(level){  //获取比当前等级大一级的vip级别
      let aLevel = '';
      if(level == 0 || level == 3){
        aLevel = 4;
      }else if(level == 4){ //vip和svip个人版触发权限判断时，都跳到svip，
        aLevel = 5;
      }else if(level == 1 || level == 5){
        aLevel = 2;
      }
      this.$router.push('/talent_main/buy?l='+aLevel)
    },
  },
};
</script>
<style lang='less' scoped>
//@import url();
#rankUpgrade {
  width: 100%;
  p {
    font-size: 14px;
    color: #555555;
    text-align: center;
  }
  button {
    display: block;
    width: 120px;
    height: 40px;
    background-color: #ff7500;
    border-radius: 6px;
    font-size: 14px;
    color: #ffffff;
    margin: 0 auto;
    margin-top: 21px;
  }
}
</style>